package com.atguigu.srb.sms.client;

import com.atguigu.srb.sms.client.fallback.coreUserInfoClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: srb
 * @author: 龙龙
 * @create: 2022-02-19 11:17
 * @description:
 **/

@FeignClient(value = "service-core",fallback = coreUserInfoClientFallback.class)
public interface CoreUserInfoClient {

    @GetMapping("/api/core/userInfo/checkMobile/{mobile}")
    boolean checkMobile(@PathVariable String mobile);


}
